﻿<?xml version="1.0" encoding="utf-8" ?>
<CommandConfiguration xmlns="http://tempuri.org/HostCommandDefinitions.xsd">
  <CommandName>Generate a key check value.</CommandName>
  <Request>BU</Request>
  <Response>BV</Response>

  <Field>
    <Name>Key Type Code</Name>
    <Length>2</Length>
    <Type>Character</Type>
  </Field>

  <Field>
    <Name>Key Length Flag</Name>
    <Length>1</Length>
    <Type>Numeric</Type>
  </Field>
  
  <Field>
    <Name>Key</Name>
    <IncludeFile>MultiFormatKey.xml</IncludeFile>
  </Field>

  <Field>
    <Name>Delimiter 1</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>;</ValidValue>
  </Field>
  
  <Field>
    <Name>Key Type</Name>
    <Length>3</Length>
    <Type>Hexadecimal</Type>
    <DependentField>Delimiter 1</DependentField>
    <DependentValue>;</DependentValue>
  </Field>

  <Field>
    <Name>Delimiter 2</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <ValidValue>;</ValidValue>
  </Field>

  <Field>
    <Name>Reserved 1</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <DependentField>Delimiter 2</DependentField>
    <DependentValue>;</DependentValue>
    <ExclusiveDependency>false</ExclusiveDependency>
  </Field>

  <Field>
    <Name>Reserved 2</Name>
    <Length>1</Length>
    <Type>Character</Type>
    <DependentField>Delimiter 2</DependentField>
    <DependentValue>;</DependentValue>
    <ExclusiveDependency>false</ExclusiveDependency>
  </Field>

  <Field>
    <Name>Key Check Value Type</Name>
    <Length>1</Length>
    <Type>Numeric</Type>
    <DependentField>Delimiter 2</DependentField>
    <DependentValue>;</DependentValue>
    <ExclusiveDependency>false</ExclusiveDependency>
    <ValidValue>0</ValidValue>
    <ValidValue>1</ValidValue>
    <RejectionCodeIfInvalid>15</RejectionCodeIfInvalid>
  </Field>

</CommandConfiguration>
